
using System;
using System.Collections.Generic;
using NiMVC;
using UnityEngine;


[CreateAssetMenu]
[Model("Assets/数据配置/Data关卡详情.xlsx")]
public class TestModel :BaseModel<TestModelData>
{
    public override List<TestModelData> GetCopyData()
    {
        List<TestModelData> res = new List<TestModelData>();
        
        foreach (var VARIABLE in Datas)
        {
            res.Add(VARIABLE.Copy());
        }
        return res;
    }
}

[Serializable]
public class TestModelData : IModelData
{
    public int Id;
    public int Count;
    public string Name;

    public TestModelData Copy()
    {
        TestModelData o = new TestModelData();
        o.Id = Id;
        o.Count = Count;
        o.Name = Name;
        return o;
    }
    
    public int GetId()
    {
        return Id;
    }
}